
if ENABLE_TESTS

noinst_PROGRAMS=belle_sip_tester belle_sip_object_describe belle_sip_parse belle_http_get belle_sip_resolve

EXTRA_DIST= belle_sip_base_uri_tester.c

belle_sip_tester_SOURCES= \
				auth_helper_tester.c \
				belle_generic_uri_tester.c \
				belle_http_tester.c \
				belle_sdp_tester.c \
				belle_sip_core_tester.c \
				belle_sip_dialog_tester.c \
				belle_sip_headers_tester.c \
				belle_sip_message_tester.c \
				belle_sip_refresher_tester.c \
				belle_sip_register_tester.c \
				belle_sip_resolver_tester.c \
				belle_sip_tester.c belle_sip_tester.h\
				belle_sip_uri_tester.c \
				belle_sip_fast_uri_tester.c \
				cast_test.c \
				register_tester.h


belle_sip_tester_CFLAGS=\
	-DBC_CONFIG_FILE=\"config.h\" \
	$(BCTOOLBOXTESTER_CFLAGS) \
	$(STRICT_OPTIONS) \
	$(STRICT_OPTIONS_CC) \
	$(TLS_CFLAGS)

belle_sip_tester_LDADD=$(top_builddir)/src/libbellesip.la $(TLS_LIBS) $(BCTOOLBOXTESTER_LIBS)

belle_sip_object_describe_SOURCES=describe.c

belle_sip_parse_SOURCES=parse.c

belle_http_get_SOURCES=get.c

belle_sip_resolve_SOURCES=resolve.c
belle_sip_resolve_CFLAGS=$(TLS_CFLAGS)

AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src

LDADD=$(top_builddir)/src/libbellesip.la $(TLS_LIBS)


AM_LDFLAGS=-no-undefined -export-dynamic
#AM_LDFLAGS+=-Wl,-rpath -Wl,$(libdir)


AM_CFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC)


test: belle_sip_tester
	./belle_sip_tester $(TEST_OPTIONS)

else

test:
	@echo "bctoolbox-tester must be installed to be able to run the tests!"

endif

